<?php




namespace app\validate\merchant;


use think\Validate;

class MerchantTakeValidate extends Validate
{
    protected $failException = true;

    protected $rule = [
        'mer_take_status|开启门店自提' => 'require|in:0,1',
        'mer_take_name|门店名称' => 'require',
        'mer_take_phone|门店电话' => 'require',
        'mer_take_address|门店地址' => 'require',
        'mer_take_location|门店经纬度' => 'require|array|length:2',
        'mer_take_day|门店营业日期' => 'array|max:7',
        'mer_take_time|门店营业时间' => 'array|length:2',
    ];
}